﻿using System;
using System.ComponentModel;
using Common;

namespace Validation
{
    public class CustomerExceptionValidation : BaseClass
    {
        private string name;
        public string Name
        {
            get { return name; }
            set
            {
               if (string.IsNullOrEmpty(value))
                    throw new Exception("error");
                name = value;
                OnPropertyChanged("Name");
            }
        }

        public string Error
        {
            get { throw new NotImplementedException(); }
        }

        public string this[string columnName]
        {
            get { throw new NotImplementedException(); }
        }
    }
}
